//
//  newsDetailViewController.m
//  HuiWenMovie
//
//  Created by niceDay on 15/7/27.
//  Copyright (c) 2015年 computer. All rights reserved.
//

#import "newsDetailViewController.h"

@interface newsDetailViewController ()

@end

@implementation newsDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    
//    NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
//    
//    NSURLRequest *request = [NSURLRequest requestWithURL:url];
//    [webView loadRequest:request];
//    
    
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"news1.html" ofType:nil];
    NSString *htmlstr = [NSString stringWithContentsOfFile:filePath encoding: NSUTF8StringEncoding error:nil];
    
    [webView loadHTMLString:htmlstr baseURL:nil];
    
    
    
    
    [self.view addSubview:webView];
    
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
